package r3.powtorka;

public class Stringi {

	public static void main(String[] args) {

		String elementarz = "Ala ma kota";
		String ala = elementarz.substring(0, 3);
		System.out.println(elementarz);
		System.out.println(ala);
		String kot = elementarz.substring(7, 10);
		System.out.println(kot);
		System.out.println(kot.length());
		System.out.println(elementarz.length());
		
		String greeting = "Hello";
		System.out.println(greeting);
		greeting = greeting.substring(0, 3) + "p!";
		System.out.println(greeting);
	}

}
